home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / sbin / lilo < prev    next >
Text File  |  2008-05-15  |  602b  |  24 lines

  1. #!/bin/sh -e
  2.  
  3. # if chroot.
  4. if [ "$1" = "-r" -a "$2" != "" ]; then
  5.   if [ -c /dev/.devfsd -a ! -c $2/dev/.devfsd ]; then
  6.     mount none $2/dev -t devfs
  7.   fi
  8.  
  9. # use "$@" instead of $* so you can do `lilo -C "/etc/spare lilo config"`
  10.   $0.real "$@"
  11.   if [ -c /dev/.devfsd ]; then
  12.     umount $2/dev
  13.   fi
  14.  
  15. else
  16.  
  17. # use "$@" instead of $* so you can do `lilo -C "/etc/spare lilo config"`
  18.   $0.real "$@"
  19.   if [ "$1" != "-t" ]; then
  20.     rm -f /boot/boot.b.preserved* /boot/boot-text.b.preserved* /boot/boot-menu.b.preserved* /boot/chain.b.preserved* /boot/os2_d.b.preserved* /boot/boot-bmp.b.preserved
  21.   fi
  22.  
  23. fi
  24.